<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
	<title></title>
	<script type="text/javascript" src="__dotnar_lib_base_url__/js/lib/require.min.js"></script>
	<script type="text/javascript" src="__dotnar_lib_base_url__/js/lib/loader.js"></script>
    <script type="text/javascript" src="/js/require.config.js"></script>
    <script type="text/javascript">
    require(["core"], function() {
    	require(["./js/pages/default/m.carts"],function (argument) {
        	window.removeLoader();       	
    	});
    });
    </script>
    
</head>
<body>
    <div style="display:none" id="jSouperApp">
        <xmp>
        {{#include "./pages/mobile/default/top.html"}}
        {{#include "./pages/mobile/default/nav.html"}}

        <div class="cart">
            <div class="title">购物车</div>
            <hr />
            {{#if user.cart_detail.length}}
            <!-- <scroll resizekey="{{user.cart_detail.length}}"> -->
            <div>
                {{#each user.cart_detail}}
                    <div class="cart">
                        {{#each goods_info}}
                        <div class="item">
                            <div class="imgbox">
                                <a href="/m.goods-details.html?id={{goods_id}}"><img class="img" bind-src="{{goods.preview_img_url}}" /></a>
                            </div>
                            <div class="info">
                                 <a href="/m.goods-details.html?id={{goods_id}}"><span class="infotitle">{{goods.goods_name}}</span><span class="intro">{{goods.intro}}</span></a>
                            </div>
                            <div class="price">
                                <div class="price-item">￥{{goods.price}}</div>
                                <div class="num">x{{num}}</div>
                                <div event-click="{{'$Top.$Event.cart.remove_goods'}}" class="remove"><button class="btn">移除</button></div>
                            </div>
                        </div>
                        {{/each}}
                        <hr />
                    </div>
                {{/each}}
            </div>
            <!-- </scroll> -->
            {{#else}}
            <p>购物车中暂无商品</p>
            {{/if}}


            <div class="box">
                商品总计:<div class="price">￥<span>{{$Cache.cart.total_price}}</span></div>
                <div class="settlement">
                    <input class="btn" event-click="{{'$Event.cart.cart_to_ach'}}" type="button" value="确认订单" />
                </div>
            </div>
        
        </div>



        {{#include "pages/mobile/default/bottom.html"}}
        </xmp>
    </div>

</body>
</html>
